<!-- 
	动态组件：商品导航 TODO
	props: 
		data: 组件数据
		
	action:
		
 -->
<template>
    <view
        class="dynamic-category"
        :style="{
            backgroundColor: data.CategoryBg ? data.CategoryBg : '',
        }">
        <!-- <view v-for="(item,index) in navs" :key="index">
			<text 
				:style="{
					color:data.CategoryTxt?data.CategoryTxt:''
				}"
			>1111</text>
		</view> -->
        <text> 组件开发中 </text>
    </view>
</template>

<script>
export default {
    props: {
        data: {
            type: Object,
            default: () => {},
        },
    },
    data() {
        return {
            navs: [],
        }
    },
    mounted() {
        this.getDatas()
    },
    methods: {
        getDatas() {
            if (this.data.CategorySource == "category") {
                //获取分类接口
            }
        },
    },
}
</script>

<style lang="scss" scope>
@import "@/uni-sub-base/components/dynamic/style/dynamic.scss";
</style>
